import request from "@/utils/request";

// 获得门店营销渠道分页
export function getChannels(query) {
  return request({
    url: "/store/mark-channel/page",
    method: "get",
    params: query,
  });
}

// 创建门店营销渠道
export function CreateChannels(data) {
  return request({
    url: "/store/mark-channel/create",
    method: "post",
    data: data,
  });
}

// 更新门店营销渠道
export function UpdateChannels(data) {
  return request({
    url: "/store/mark-channel/update",
    method: "put",
    data: data,
  });
}

// 删除门店营销渠道
export function DeleteChannels(query) {
  return request({
    url: "/store/mark-channel/delete",
    method: "delete",
    params: query,
  });
}

// 获得门店营销渠道
export function getChannelsDetail(query) {
  return request({
    url: "/store/mark-channel/get",
    method: "get",
    params: query,
  });
}
